home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / src / lmsg.h < prev    next >
C/C++ Source or Header  |  1997-07-22  |  2KB  |  62 lines

  1.  
  2. /* $Id: lmsg.h,v 1.4 1997/06/25 22:08:51 pvmsrc Exp $ */
  3.  
  4. /*
  5.  *         PVM version 3.4:  Parallel Virtual Machine System
  6.  *               University of Tennessee, Knoxville TN.
  7.  *           Oak Ridge National Laboratory, Oak Ridge TN.
  8.  *                   Emory University, Atlanta GA.
  9.  *      Authors:  J. J. Dongarra, G. E. Fagg, M. Fischer
  10.  *          G. A. Geist, J. A. Kohl, R. J. Manchek, P. Mucci,
  11.  *         P. M. Papadopoulos, S. L. Scott, and V. S. Sunderam
  12.  *                   (C) 1997 All Rights Reserved
  13.  *
  14.  *                              NOTICE
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software and
  17.  * its documentation for any purpose and without fee is hereby granted
  18.  * provided that the above copyright notice appear in all copies and
  19.  * that both the copyright notice and this permission notice appear in
  20.  * supporting documentation.
  21.  *
  22.  * Neither the Institutions (Emory University, Oak Ridge National
  23.  * Laboratory, and University of Tennessee) nor the Authors make any
  24.  * representations about the suitability of this software for any
  25.  * purpose.  This software is provided ``as is'' without express or
  26.  * implied warranty.
  27.  *
  28.  * PVM version 3 was funded in part by the U.S. Department of Energy,
  29.  * the National Science Foundation and the State of Tennessee.
  30.  */
  31.  
  32. /*
  33.  *    lmsg.h
  34.  *
  35.  * structures and protos to handle message structures
  36.  *
  37.  */
  38.  
  39. #ifndef __LMSG_H__
  40. #define __LMSG_H__
  41.  
  42. #include "mppmsg.h"
  43. struct msgid {
  44.     int magic;            /* magic number of this structure */
  45.     msgmid_t id;        /* handle of message */
  46.     int tag;            /* tag of message */
  47.     int otid;            /* task id of "other" tid (sendto or recvfrom) */
  48.     int ctxt;            /* context of the message */
  49.     int complete;        /* message is complete */
  50.     int len;
  51.     info_t info[MPPINFOSIZE];
  52.     char *ubuf;
  53.     MSGFUNC_PTR mfunc;    /* low level messaging used for this message id */
  54.     struct msgid *ms_link; /* might put these in a dll */
  55.     struct msgid *ms_rlink;
  56. };
  57.  
  58. struct msgid * msgid_new __ProtoGlarp__(( ));
  59. void msgid_free __ProtoGlarp__( (struct msgid *) );
  60.  
  61. #endif
  62.